package edcom.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.Cookies;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.ValueBoxBase.TextAlignment;
import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.event.dom.client.MouseOverEvent;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
@SuppressWarnings("unused")
public class ROOT implements EntryPoint {
	private RootPanel logBoxSpace;
	private RootPanel imageViewerSpace;
	private RootPanel fileUploadAreaSpace;
	private LogBox logBox;
	private ImageViewer imageViewer;
	private FileUploadArea fileUploadArea; 
	
	public void onModuleLoad() {

		logBoxSpace = RootPanel.get("logBox");

		if(logBoxSpace != null) {
			logBox = new LogBox(logBoxSpace);
		} else {
//			Window.alert("assignment error: LogBox");
		}

		imageViewerSpace = RootPanel.get("imageViewer");

		if(imageViewerSpace != null) {
			imageViewer = new ImageViewer(imageViewerSpace);
		} else {
//			Window.alert("assignment error: ImageViewer");
		}
		
		fileUploadAreaSpace = RootPanel.get("fileUploadArea");
		
		if(fileUploadAreaSpace != null) {
			fileUploadArea = new FileUploadArea(fileUploadAreaSpace);
		} else {
//			Window.alert("assignment error: ImageViewer");
		}
		

	}

}

